package fiuba.model;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.ManyToOne;

@Entity
public class ListaNoticias extends BaseObject implements Serializable  {

	private static final long serialVersionUID = -6848395551229508433L;
	private Long id;
    private String nombre;
	private int noticiasAMostrar;
//	private Seccion seccion;
	private int columnas;
	private String alineacion;
	private String colorUno;
	private String colorDos;
	private int sizeUno;
	private int sizeDos;
	
	private boolean separador;
	private String extraStyleTitulo;
	private String extraStyleTexto;
	
	@Column
	public int getNoticiasAMostrar() {
		return noticiasAMostrar;
	}

	public void setNoticiasAMostrar(int noticiasAMostrar) {
		this.noticiasAMostrar = noticiasAMostrar;
	}


	@Column
	public int getColumnas() {
		return columnas;
	}

	public void setColumnas(int columnas) {
		this.columnas = columnas;
	}
	@Column
	public String getAlineacion() {
		return alineacion;
	}

	public void setAlineacion(String alineacion) {
		this.alineacion = alineacion;
	}
	@Column
	public String getColorUno() {
		return colorUno;
	}

	public void setColorUno(String colorUno) {
		this.colorUno = colorUno;
	}
	@Column
	public String getColorDos() {
		return colorDos;
	}

	public void setColorDos(String colorDos) {
		this.colorDos = colorDos;
	}
	
	@Column
	public boolean isSeparador() {
		return separador;
	}

	public void setSeparador(boolean separador) {
		this.separador = separador;
	}
	@Override
	public boolean equals(Object o) {
		// TODO Auto-generated method stub
		return false;
	}

	@Override
	public int hashCode() {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public String toString() {
		// TODO Auto-generated method stub
		return null;
	}
	@Id @GeneratedValue(strategy=GenerationType.AUTO)
	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}
	@Column
	public int getSizeUno() {
		return sizeUno;
	}

	public void setSizeUno(int sizeUno) {
		this.sizeUno = sizeUno;
	}
	@Column
	public int getSizeDos() {
		return sizeDos;
	}

	public void setSizeDos(int sizeDos) {
		this.sizeDos = sizeDos;
	}
	@Column
	public String getExtraStyleTitulo() {
		return extraStyleTitulo;
	}

	public void setExtraStyleTitulo(String extraStyleTitulo) {
		this.extraStyleTitulo = extraStyleTitulo;
	}

	@Column
	public String getExtraStyleTexto() {
		return extraStyleTexto;
	}

	public void setExtraStyleTexto(String extraStyleTexto) {
		this.extraStyleTexto = extraStyleTexto;
	}

	@Column(nullable=false,length=50,unique=true)
	public String getNombre() {
		return nombre;
	}

	public void setNombre(String nombre) {
		this.nombre = nombre;
	}

}
